﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdateClientInfo.aspx.cs" Inherits="admin_UpdateClientInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    
               <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
                    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>

                    <style type="text/css">
                <!--
                html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
                scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
                -->
                </style>

</head>
<body>
    <form id="form1" runat="server">
            <div class="sub_right_top">
  <div class="hdm_header" >
    <div class="tb1_on"><h2 class="h2_icon">客户基本信息</h2></div>
    <div class="clear"></div>
  </div>
  <div class="hdm_footer">
    <div class="fabu_gg_title">客户信息编辑</div>            
    <table width="97%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0" style="border-collapse:collapse; ">
      <tr>
        <td width="120">销售员：</td>
        <td>
            <asp:TextBox ID="txtSellUser" runat="server" ReadOnly="True" Width="80%"></asp:TextBox>
        </td>
      </tr>
      <tr>
        <td width="120">是否为共享客户：</td>
        <td>
          <asp:DropDownList ID="ddlIsShare" runat="server" Font-Size="12px" Height="20px" 
                Width="171px">
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </asp:DropDownList>
        </td>
      </tr>

      <tr>
        <td width="120">客户名称：</td>
        <td>
          <asp:TextBox ID="txtClientName" runat="server" Width="80%"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtClientName"
            Font-Bold="True" Font-Size="12px" ErrorMessage="客户名称不能为空！">*</asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td width="120">电话：</td>

        <td>
         <asp:TextBox ID="txtTelephone" runat="server" Width="80%"></asp:TextBox>
        </td>
      </tr>
      <tr>
        <td width="120">传真：</td>
        <td>
            <asp:TextBox ID="txtFaxes" runat="server" Width="80%"></asp:TextBox>
        </td>
      </tr>
      <tr>
        <td width="120">网址：</td>
        <td>
          <asp:TextBox ID="txtURL" runat="server" Width="80%"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtURL"
            Font-Bold="True" Font-Size="12px" ErrorMessage="网址格式不正确！">*</asp:RegularExpressionValidator>
        </td>
      </tr>

      <tr>
        <td width="120">电子邮件：</td>
        <td>
          <asp:TextBox ID="txtEmail" runat="server" Width="80%"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEmail"
            Font-Bold="True" Font-Size="12px" ErrorMessage="电子邮件格式不正确！">*</asp:RegularExpressionValidator>
        </td>
      </tr>
      <tr>
        <td width="120">地址：</td>

        <td>
          <asp:TextBox ID="txtAddress" runat="server" Width="80%"></asp:TextBox>
        </td>
      </tr>
      <tr>
        <td width="120">邮政编码：</td>
        <td>
          <asp:TextBox ID="txtPostalcode" runat="server" Width="80%"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtPostalcode"
            Font-Bold="True" Font-Size="12px" ErrorMessage="邮政编码格式不正确！">*</asp:RegularExpressionValidator>
        </td>
      </tr>
      <tr>
        <td width="120">备注：</td>
        <td>
          <asp:TextBox ID="txtRemark" runat="server" Height="70px" TextMode="MultiLine" Width="80%"></asp:TextBox>
        </td>
      </tr>

      <tr>
        <td colspan="2" align="center"><div class="disk_queding_top">
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="" CssClass="queding_anniu"/>
        </div>
          <div class="disk_back_top">
            <asp:Button ID="btnBack" runat="server" CausesValidation="False"
                                    Text="" OnClick="btnBack_Click" CssClass="fanhui_anniu"/>
          </div></td>
        </tr>
    </table>
    <div style="height:20px;"></div>
  </div>
</div>
    </form>
</body>
</html>
<script type="text/javascript" language="javascript">
    function checkfrm()
    {
        if(document.getElementById('txtClientName').length>100)
        {
            alert('客户名称长度不能大于100个字符！');
            return false;
        }
        if(document.getElementById('txtTelephone').length>20)
        {
            alert('电话长度不能大于20个字符！');
            return false;
        }
        if(document.getElementById('txtFaxes').length>20)
        {
            alert('传真长度不能大于20个字符！');
            return false;
        }
        if(document.getElementById('txtURL').length>50)
        {
            alert('网址长度不能大于50个字符！');
            return false;
        }
        if(document.getElementById('txtEmail').length>50)
        {
            alert('电子邮件不能大于50个字符！');
            return false;
        }
        if(document.getElementById('txtAddress').length>200)
        {
            alert('地址长度不能大于200个字符！');
            return false;
        }
        if(document.getElementById('txtPostalcode').length>50)
        {
            alert('邮编长度不能大于50个字符！');
            return false;
        }
        return true;
    }
</script>